(Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 28 Sep 2006 19:00:10 +0000 (19:00 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 28 Sep 2006 19:00:10 +0000 (19:00 +0000)
src/ChangeLog
src/keymap.c

index de5a1008e60fbaa710b4b23c4903c866460673f4..7c88cbd6338e06c5234f2c4b258d60c09b424668 100644 (file)
@@ -1,3 +1,7 @@
+2006-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
+
 2006-09-26  Chong Yidong  <cyd@stupidchicken.com>
 
        * indent.c (Fvertical_motion): Do move back if the Lisp string
index 9b36ec08b6d7b0d656d193c678710193c02257de..1476859ccd5ce345c014171dbf0262b50d9d4022 100644 (file)
@@ -1156,7 +1156,7 @@ binding KEY to DEF is added at the front of KEYMAP.  */)
 
   meta_bit = VECTORP (key) ? meta_modifier : 0x80;
 
-  if (VECTORP (def) && ASIZE (def) > 0 && CONSP (AREF (def, make_number (0))))
+  if (VECTORP (def) && ASIZE (def) > 0 && CONSP (AREF (def, 0)))
     { /* DEF is apparently an XEmacs-style keyboard macro.  */
       Lisp_Object tmp = Fmake_vector (make_number (ASIZE (def)), Qnil);
       int i = ASIZE (def);